﻿
namespace SpiderMaster.AspNet.TradingSystem
{
    public partial class ImageManager
    {
        /// <summary> Gets the formatted URL.
        /// </summary>
        /// <param name="ImageId">The image id.</param>
        /// <param name="ImageType">Type of the image.</param>
        /// <param name="ImageSize">Size of the image.</param>
        /// <returns></returns>
        public static string GetFormattedUrl(int ImageId, ImageType ImageType, ImageSize ImageSize)
        {
            return LinkManager.AppendUrl(VirtualHandler.ImageDisplay, QueryOperator.ImageId, ImageId, QueryOperator.ImageType, ImageType, QueryOperator.ImageSize, ImageSize);
        }

        /// <summary> Is only here because i wouldnt have a fucking clue how to Make a String an Int in a Page
        /// So I have just captured the ImageId as an object instead.
        /// </summary>
        /// <param name="ImageId"></param>
        /// <param name="ImageType"></param>
        /// <param name="ImageSize"></param>
        /// <returns></returns>// Is object because is dropped via Page
        public static string GetFormattedUrl(object ImageId, ImageType ImageType, ImageSize ImageSize)
        {
            return GetFormattedUrl((int)ImageId, ImageType, ImageSize);
        }
    }
}